﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using FingerPrintRecognizer.Common;

namespace FingerPrintRecognizer
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IFPRecognizerService
    {
        [OperationContract]
        string getAccessToken(string user, string pass);

        [OperationContract]
        void destroyAccessToken(string accessToken);

        [OperationContract]
        Person getPersonById(string accessToken,int id);

        [OperationContract]
        Person getPersonByNationalId(string accessToken, string nationalID);

        [OperationContract]
        Person[] getPersons(string accessToken, int itemPerPage, int pageNo);

        [OperationContract]
        bool savePerson(string accessTocken,Person person);

        [OperationContract]
        PluginInfo[] getPluginList(string accessTocken);

        [OperationContract]
        bool loadPlugin(string accessTocken,PluginInfo pi);

    }

}
